﻿using LiteDB;
using System;
using System.Collections.Generic;
using System.Linq;

namespace LiteDb
{
    // Lua脚本  
    public class ScriptLua
    {
        public int Id { get; set; }
        public string Name { get; set; } = string.Empty;
        public int GroupDeviceId { get; set; }
        public BsonDocument Extra { get; set; } = new BsonDocument();
    }

    // MQTT消息
    public class ScriptMQTTMessage
    {
        public int Id { get; set; }
        public string Name { get; set; } = string.Empty;
        public int GroupDeviceId { get; set; }
        public BsonDocument Extra { get; set; } = new BsonDocument();
    }    
    
    // Lua图形
    public class ScriptLuaGraph
    {
        public int Id { get; set; }
        public string Name { get; set; } = string.Empty;
        public int GroupDeviceId { get; set; }
        public BsonDocument Extra { get; set; } = new BsonDocument();
    }     
}